package com.ruoyi.web.controller.vantController;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.system.domain.Safeguard;
import com.ruoyi.system.service.ISafeguardService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/api/system/safeguard")
public class ApiSafeguardController extends BaseController {

    @Autowired
    private ISafeguardService safeguardService;

    /**
     * 查询平台保障服务列表
     */

    @GetMapping("/list")
    public TableDataInfo list(Safeguard safeguard)
    {

        List<Safeguard> list = safeguardService.selectSafeguardList(safeguard);
        return getDataTable(list);
    }

}
